﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Common.Http
{
    /// <summary>
    /// 服务异常
    /// </summary>
    public class ServiceException : Exception
    {
        /// <summary>
        /// 构建一个服务异常的实例
        /// </summary>
        /// <param name="hResult">描述错误的代码。</param>
        /// <param name="message">描述错误的消息。</param>
        public ServiceException(int hResult, string message) : base(message)
        {
            this.HResult = hResult;
        }
    }
}
